package com.jxb.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.jxb.ExceptionUtil;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/10/5 20:18
 **/
@RestController
@RequestMapping("/order")
public class OrderController {

//    @SentinelResource(value = "getUser",
//            fallback = "fallback",fallbackClass = ExceptionUtil.class,
//            blockHandler = "handleException",blockHandlerClass = ExceptionUtil.class
//    )
    @RequestMapping("/findOrderByUserId/{id}")
    public Object getUser(@PathVariable("id") Integer id) {
        int i = 1/0;
        System.out.println("122222");
        return "123333";
    }

}
